﻿@{
    ViewBag.Title = "ExportExcelTest";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>ExportExcelTest</h2>

<div>
    <input type="button" value="Export" id="btn_export" />
</div>
<script type="text/javascript">
    $("#btn_export").click(function () {
        var url = '@Url.Action("ExportExcel", "Home")';
        window.open(url, "_blank");
    })
</script>
